package cn.walls1717.wallsmall.ware.service;

import cn.walls1717.wallsmall.ware.pojo.vo.MergeVO;
import cn.walls1717.wallsmall.ware.pojo.vo.PurchaseFinishVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.walls1717.wallsmall.common.utils.PageUtils;
import cn.walls1717.wallsmall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author walls1717
 * @email walls1717@163.com
 * @date 2022-10-30 08:57:21
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分页查询出采购状态为0或1的数据
     *
     * @param params params
     * @return 采购状态为0或1的数据
     */
    PageUtils listPagesByStatus(Map<String, Object> params);

    /**
     * 合并采购需求
     *
     * @param mergeVO 合并参数
     */
    void mergePurchase(MergeVO mergeVO);

    /**
     * 领取采购单
     * 
     * @param ids
     */
    void receivePurchase(List<Long> ids);

    /**
     * 完成采购单
     * 
     * @param purchaseFinishVO
     */
    void finishPurchase(PurchaseFinishVO purchaseFinishVO);
}
